#include "mainpagewindow.h"
#include "loginwindow.h"
#include "ui_mainpagewindow.h"

MainPageWindow::MainPageWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainPageWindow)
{
    ui->setupUi(this);

    this->setWindowIcon(QIcon(":/img/bbb.png"));
    this->setWindowTitle("主页");
//    loginWindow *login_window = qobject_cast<loginWindow*>(this->parentWidget());
//    ui->label->setText(QString("欢迎用户[ %1 ] 使用本系统!!!").arg(login_window->getAccount()));

}

MainPageWindow::~MainPageWindow()
{
    delete ui;
}

void MainPageWindow::loginSignedFunc(QString account)
{
     ui->label->setText(QString("欢迎用户[ %1 ] 使用本系统!!!").arg(account));
}
